<%@ Page Language="vb" EnableViewState="false" AutoEventWireup="false" Codebehind="LaLocationPrivateNum.aspx.vb" Inherits="ccapps.Web.page.LaLocationPrivateNum" %>
<script language="javascript">var ob_tree_id="tree1";var ob_icons="/ccapps/TreeIcons/Icons";var ob_style="/ccapps/TreeIcons/Styles/Classic";ob_tree_editnode_enable=false;ob_tree_keynav_enable=false;ob_tree_multiselect_enable=false;ob_expand_single=false;verdadero=true;falso=false;wahr=true;falsch=false;vrai=true;faux=false;</script>
<script language="JavaScript" src="/ccapps/TreeIcons/Icons/ob_tree_504.js" type="text/javascript"></script>
<script>
function chkList() {
	
	var ob_t2in,ob_t2s,ob_t2checked="";
	ob_t2in=document.getElementsByTagName("input");
	for (var i=0; i<ob_t2in.length; i++) {
		
		ob_t2s=ob_t2in[i].id;		
	if (ob_t2s.substr(0,3)=="chk")  {		
		if ((ob_t2s.substr(0,3)=="chk") && (ob_t2in[i].checked)) {		
			if (ob_t2checked==""){
			ob_t2checked=ob_t2checked+ob_t2in[i].value;
			}else{
			ob_t2checked=ob_t2checked+","+ob_t2in[i].value;
			}
		}
	}else if (ob_t2s.substr(0,4)=="text" && ob_t2in[i-1].checked && ob_t2in[i].value!=""){
	ob_t2checked=ob_t2checked+"#"+ob_t2in[i].value;
	}
	
	}	
	alert(ob_t2checked);
	return ob_t2checked;
}
function control(val){
if (val.substring(0,1)=="0" || val.substring(0,1)=="1" || val.substring(0,1)=="9" ){alert("Private Number 0, 1, 9 karakterleriyle baslayamaz. !")}
if (val.substring(0,3)=="444" || val.substring(0,3)=="555" || val.substring(0,3)=="500" ){alert("Private Number 444, 555, 500 karakterleriyle baslayamaz. !")}
return false;
}

function changeControl(val){
if (val.length<3 ){alert("Private Number max 10 karakter min 3 karakter olmalidir. ! ")}
void(0);
return false;
}


</script>
<form id="Form1" method="post" runat="server">
	<input id="proc" type="hidden" name="proc" runat="server"> <input id="Txt1" type="hidden" name="Txt1" runat="server">
	<input id="deletedPrivateNum" type="hidden" name="deletedPrivateNum" runat="server">
	<table border="0">
		<tr>
			<td vAlign="top" width="300" bgColor="lightgoldenrodyellow"><ASP:LITERAL id="TreeView" runat="server"></ASP:LITERAL></td>
			<td vAlign="top" width="100%">
				<table cellSpacing="0" cellPadding="0">
					<tr>
						<TD class="solbaslik" vAlign="top">Custumer Code</TD>
						<TD class="input" vAlign="top">
							<P><asp:textbox id="custcode" tabIndex="2" runat="server" readonly="true" BackColor="#E0E0E0" width="180"></asp:textbox></P>
						</TD>
					</tr>
				</table>
			</td>
		</tr>
	</table>
	<br>
	<SCRIPT src="/ccapps/web/js/buttonset.js"></SCRIPT>
	<script>begin();geri("geri","geri");link("Priv Num Add/Upd","privateNum","document.getElementById('Txt1').value=chkList();");end();</script>
</form>
